package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description 二级分类vo
 * @Author dingchunlin
 * @Date 2023/12/19 10:35
 * @Version 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2VO {
    //一级分类id
    private String catalog1Id;
    //三级子分类
    private List<Catelog3VO> catalog3List;

    private String id;

    private String name;

    /**
     * 三级分类vo
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catelog3VO{
        //父分类id
        private String catalog2Id;
        private String id;
        private String name;

    }
}
